package com.yzt.user.service.impl;

import java.util.List;

import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.yzt.base.service.impl.BaseServiceImpl;
import com.yzt.user.entity.Info;
import com.yzt.user.mapper.InfoMapper;
import com.yzt.user.service.IInfoService;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author Y
 * @since 2020-11-23
 */
@Service
@CacheConfig(cacheNames = "user", keyGenerator = "keyGenerator")
public class InfoServiceImpl extends BaseServiceImpl<InfoMapper, Info> implements IInfoService {

	@Override
	@Cacheable
	public List<Info> getAllUserInfo() {
		return this.list();
	}

}
